You are here: Reference Guide > Report Writing > Appendix B Auto populated Formulae

Appendix B – Auto-populated Formulae

Formula Name

Auto-populated Value

Pass_DSN

A standard ADO style connection string.  This can be used in the report to fire ad-hoc queries from formula.   Use of this is not recommended, and it is included for backward-compatibility only.

Code:

Database.FormatChar(Database.ConnectionDetails)

Pass_User

The username of the user executing the report.

Code:

Database.FormatChar(Database.JiwaLoginUserName)

Pass_CompanyName

The contents of the “CompanyName” system setting.

Code:

Database.FormatChar(Database.ReadSysData("System", "CompanyName", "Jiwa Financials"))

Pass_CompanyPhone

The contents of the “CompanyPhone” system setting.

Code:

Database.FormatChar(Database.ReadSysData("System", "CompanyPhone", "Jiwa Financials"))

Pass_CompanyFax

The contents of the “CompanyFax” system setting.

Code:

Database.FormatChar(Database.ReadSysData("System", "CompanyFax", "Jiwa Financials"))

Pass_CompanyAddress1

The contents of the “CompanyAddress1” system setting.

Code:

Database.FormatChar(Database.ReadSysData("System", "CompanyAddress1", "Jiwa Financials"))

Pass_CompanyAddress2

The contents of the “CompanyAddress2” system setting.

Code:

Database.FormatChar(Database.ReadSysData("System", "CompanyAddress2", "Jiwa Financials"))

Pass_CompanyAddress3

The contents of the “CompanyAddress3” system setting.

Code:

Database.FormatChar(Database.ReadSysData("System", "CompanyAddress3", "Jiwa Financials"))

Pass_CompanyAddress4

The contents of the “CompanyAddress4” system setting.

Code:

Database.FormatChar(Database.ReadSysData("System", "CompanyAddress4", "Jiwa Financials"))

Pass_CompanyEmail

The contents of the “CompanyEmail” system setting.

Code:

Database.FormatChar(Database.ReadSysData("System", "CompanyEmail", "Jiwa Financials"))

Pass_CompanyWebsite

The contents of the “CompanyWebsite” system setting.

Code:

Database.FormatChar(Database.ReadSysData("System", "CompanyWebsite", "Jiwa Financials"))

Pass_CompanyACN

The contents of the “CompanyACN” system setting.

Code:

Database.FormatChar(Database.ReadSysData("System", "CompanyACN", "Jiwa Financials"))

Pass_ApplicationDate

The current date as per the Jiwa (i.e. A user is able to login under a different date – it is this date that is used).  This is the date that appears on the bottom right of the Jiwa status bar, and can be changed by the user.

Code:

Trim$("Date(" & Format$(Database.SysDate, "yyyy") & ", " & Format$(Database.SysDate, "mm") & ", " & Format$(Database.SysDate, "dd") & ")")

Pass_ApplicationTime

The current time as per the Jiwa (i.e. A user is able to login under a different time – it is this time that is used).  This is the time that appears on the bottom right of the Jiwa status bar, and can be changed by the user.

Code:

Trim$("Date(" & Format$(Database.SysDate, "yyyy") & ", " & Format$(Database.SysDate, "mm") & ", " & Format$(Database.SysDate, "dd") & ")")

Pass_SystemDate

This is the current date as per the user’s machine.

Code:

Trim$("Date(" & Format$(Date, "yyyy") & ", " & Format$(Date, "mm") & ", " & Format$(Date, "dd") & ")")

Pass_SystemTime

This is the current time as per the user’s machine.

Code:

Database.FormatChar(Format$(Date, "Long Date"))

Refer to "Appendix C - Range Parameter Formulae"

Copyright © 2012 Jiwa Financials. All rights reserved.